package com.itheima.stringdemo;

public class StringDemo2 {
    public static void main(String[] args) {

        //数组遍历直接arr.fori
        //字符串遍历arr.length().fori
        //字符串比较用equals
        //字符串忽略大小写用equalsIgnoreCase
        int[] arr={1,2,3};
        for (int i = 0; i < arr.length; i++) {

        }
        String arr2="itheima";
        String arr1=new String("username");
        for (int i = 0; i < arr1.length(); i++) {

        }
        for (int i = 0; i < arr2.length(); i++) {

        }
    }
}
